package com.example.service.impl;

import com.example.service.TestService;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author lj
 * @date 2023/11/17 9:01
 * @description
 */
@Service
public class TestServiceImpl implements TestService {

    public static final SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //设置日期格式
    @Override
    public void test() {

        System.out.println(df.format(new Date()));
    }
}
